package com.tencent.shadow.sample.host.http;


/**
 * Created by chenhaifei on 2016/3/22.
 */
public interface IWebServiceCallback<T> {
    /**
     * 成功时调用
     *
     * @param resultPack 返回内容
     */
    public void onSucceed(int sequence, T resultPack, String ReturnInfo, int Return);

    /**
     * 失败时调用
     *
     * @param error 错误信息
     */
    public void onFailure(int sequence, int errorCode, String error);
}
